#ifndef SUB_H
#define SUB_H

extern const char *prog;

struct subinfo {
	const char *name;
	int (*main)(int argc, const char *const *argv);
};

const struct subinfo *find_sub(const char *name);

int default_main(int argc, const char *const *argv);
int optdebug_main(int argc, const char *const *argv);
int ls_main(int argc, const char *const *argv);
int cut_main(int argc, const char *const *argv);
int shift_main(int argc, const char *const *argv);
#endif /* SUB_H */
